<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text" id="test">
    <button>点我</button>
    <script>
        const ipt = document.querySelector('input');
        const btn = document.querySelector('button');
        const titles = ["h1#article-title-md-1","h2#article-title-md-2","h3#article-title-md-3"];
        for(let i=0;i<titles.length;i++){
            const title = titles[i];
            console.log(title.substring(3));
        }

        console.log(titles);
        console.log(titles[0]);
        // console.log(ipt);
        ipt.addEventListener("blur",()=>{
            console.log(11111);
        })
        btn.addEventListener("click",()=>{
            console.log(22222);
        })
    </script>
</body>
</html>